package com.gg.entity;

import lombok.Data;

@Data
public class ResultData<T>{
    private Integer code;
    private String msg;
    private T data;
    private Integer userId;

    public ResultData(Integer code, String msg, T data, Integer userId) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.userId = userId;
    }

    public ResultData() {
    }

    public ResultData(Integer code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResultData(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
